//
//  user.m
//  KouDaiMaster
//
//  Created by 范智渊 on 2018/4/12.
//  Copyright © 2018年 zzgk. All rights reserved.
//

#import "user.h"

@implementation user

-(instancetype)init {
    self = [super init];
    if (self) {
        self.mUserName = @"";
        self.mMemberGrade = @"";
        self.mBalance = @"";
        self.mScore = @"";
        self.mIsLogin = NO;
        self.mIsThirdLogin = NO;
        self.portraitURL = @"";
        self.mIsAutoLogin = YES;
        self.mPassword = @"";
        self.thirdType = -1;
        self.accessToken = @"";

    }
    return self;

}
- (void)save{
        for (user* _i in [[self class] allObjects]) {
            [_i deleteObject];
        }
        [super save];
    }

@end
